$(function() {
	$("#left").load("../common/gover-left.html");
	var userId = sessionStorage.getItem("userId");
	my_vue = new Vue({
		el: '#vue_info',
		data: {
			applyList: []
		},
		methods: {
			goBack:function(){
				window.location="home.html";
			},
			doMask: function(op) {
				if(op == '1') {
					window.location = ""
				} else if(op == "2") {
					window.location = "convenienceOrder.html"
				} else {
					window.location = "feedback.html"
				}
			},
			more: function(applyId) {
				window.location = "detail.html?applyId=" + applyId;
			},
			addExpress: function(applyId,repoName) {
				window.location = encodeURI("addExpress.html?applyId=" + applyId+"&repoName="+repoName);
			},
			getApplyList: function() {
				this.$http.get(gover.getApplyList, {
					userId: userId,
				}).then(function(result) {
					if(result.data.success) {
						console.log(toJson(result.data));
						this.applyList = result.data.data;
					}
				}, function() {
					showRedMsg("","服务器正忙,请稍后在试");
				})
			}
		},
		ready: function() {
			//初始化获得总页面数和列表数据
			this.getApplyList();
		}
	});

});